package zut.wework.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import zut.wework.entity.BzksYx;
import zut.wework.entity.Calendar;
import zut.wework.entity.Result;
import zut.wework.mapper.CalendarMapper;

import java.util.List;

@Controller
public class CalendarController {
    @Autowired
    CalendarMapper calendarMapper;

    @ResponseBody
    @RequestMapping("/calendar")
    public List<Calendar>  select(){
        return calendarMapper.selectAll();
    }
    @RequestMapping("/schoolCalendar")
    String schoolCalendar(){
        return "schoolCalendar";
    }



}
